﻿#include<iostream>
using namespace std;

class Date
{
public:
	void Init(int year, int month, int day)
	{
		_year = year;
		_month = month;
		_day = day;
	}
	void Print()
	{
		cout << _year << "/" << _month << "/" << _day << endl;
	}

private:
	// 这⾥只是声明，没有开空间
	int _year; 
	int _month;
	int _day;
};

int main()
{   // Date类实例化出对象 a 和 b
	Date a;
	Date b;

	a.Init(2024, 1, 1);
	b.Init(2024, 5, 20);

	a.Print();
	b.Print();
	return 0;
}